import request from '@/utils/request'

// 查询表单版本列表
export function listFormVersion(query) {
  return request({
    url: '/flowable/formVersion/list',
    method: 'get',
    params: query
  })
}

// 查询表单版本详细
export function getFormVersion(versionId) {
  return request({
    url: '/flowable/formVersion/' + versionId,
    method: 'get'
  })
}

// 新增表单版本
export function addFormVersion(data) {
  return request({
    url: '/flowable/formVersion',
    method: 'post',
    data: data
  })
}

// 修改表单版本
export function updateFormVersion(data) {
  return request({
    url: '/flowable/formVersion',
    method: 'put',
    data: data
  })
}

// 删除表单版本
export function delFormVersion(versionId) {
  return request({
    url: '/flowable/formVersion/' + versionId,
    method: 'delete'
  })
}
